package com.jeesite.modules.backlog.entity;

import javax.validation.constraints.Size;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;
import com.jeesite.modules.common.entity.SysBasicUser;
import com.jeesite.modules.task.deploy.entity.OfficeUser;

import java.util.Date;
import java.util.List;

/**
 * 待办事项表Entity
 * @author zrr
 * @version 2022-11-21
 */
@Table(name="dc_sup_backlog", alias="a", label="待办事项表信息", columns={
		@Column(name="id", attrName="id", label="主键", isPK=true),
		@Column(name="backlog_type1", attrName="backlogType1", label="待办类型1", comment="待办类型1（1督查督办、2目标考核）", isUpdate=false),
		@Column(name="backlog_type2", attrName="backlogType2", label="待办类型2", comment="待办类型2（和菜单对应）", isUpdate=false),
		@Column(name="backlog_title", attrName="backlogTitle", label="待办标题", queryType=QueryType.LIKE),
		@Column(name="backlog_content", attrName="backlogContent", label="待办内容", queryType=QueryType.LIKE),
		@Column(name="backlog_href", attrName="backlogHref", label="跳转的地址链接", isQuery=false),
		@Column(name="org_code", attrName="orgCode", label="机构编码", comment="机构编码（牵头责任单位编码、科室编码）", isQuery=false),
		@Column(name="biz_key", attrName="bizKey", label="标识字段1"),
		@Column(name="biz_type", attrName="bizType", label="标识字段2"),
		@Column(name="send_user_code", attrName="sendUserCode", label="待办布置人编号"),
		@Column(name="send_user_name", attrName="sendUserName", label="待办布置人名称", queryType=QueryType.LIKE),
		@Column(name="receive_user_code", attrName="receiveUserCode", label="待办受理人编号", comment="待办受理人编号（如果是分发给多人，则为用户编号逗号分隔）", queryType=QueryType.LIKE),
		@Column(name="create_by", attrName="createBy", label="创建人", isUpdate=false, isQuery=false),
		@Column(name="create_date", attrName="createDate", label="创建时间", isUpdate=false, isQuery=false, isUpdateForce=true),
		@Column(name="data_type", attrName="dataType", label="数据类型", comment="数据类型（1单人、2按角色）"),
		@Column(name="data_status", attrName="dataStatus", label="数据状态", comment="数据状态（1待处理、2已处理）"),
		@Column(name="backlog_type3", attrName="backlogType3", label="待办类型3", comment="待办类型3（待审核、审核驳回、待接收、待确认等）"),
		@Column(name="task_id", attrName="taskId", label="任务id", comment="任务id"),
		@Column(name="action_id", attrName="actionId", label="分发id", comment="分发id"),
	}, orderBy="a.id DESC"
)
public class DcSupBacklog extends DataEntity<DcSupBacklog> {
	
	private static final long serialVersionUID = 1L;
	 /**
	 * 待办类型1（1督查督办、2目标考核）
	 */
	private String backlogType1;
	 /**
	 * 待办类型2（和菜单对应）
	 */
	private String backlogType2;
	 /**
	 * 待办标题
	 */
	private String backlogTitle;
	 /**
	 * 待办内容
	 */
	private String backlogContent;
	 /**
	 * 跳转的地址链接
	 */
	private String backlogHref;
	 /**
	 * 机构编码（牵头责任单位编码、科室编码）
	 */
	private String orgCode;
	 /**
	 * 标识字段1
	 */
	private String bizKey;
	 /**
	 * 标识字段2
	 */
	private String bizType;
	 /**
	 * 待办布置人编号
	 */
	private String sendUserCode;
	 /**
	 * 待办布置人名称
	 */
	private String sendUserName;
	 /**
	 * 待办受理人编号（如果是分发给多人，则为用户编号逗号分隔）
	 */
	private String receiveUserCode;
	 /**
	 * 数据类型（1单人、2按角色）
	 */
	private String dataType;
	 /**
	 * 数据状态（1待处理、2已处理）
	 */
	private String dataStatus;
	 /**
	 * 待办类型3（待审核、审核驳回、待接收等）
	 */
	private String backlogType3;
	private String taskId;
	private String actionId;

	List<OfficeUser> officeUser;

	List<SysBasicUser> basicUser;

	private String createDateStr;

	private String dealCode;
	private String dealName;
	private Date dealTime;

	private String leaderOrgName;
	private String taskStatus;




	public DcSupBacklog() {
		this(null);
	}

	public DcSupBacklog(String id){
		super(id);
	}
	
	@Size(min=0, max=10, message="待办类型1长度不能超过 10 个字符")
	public String getBacklogType1() {
		return backlogType1;
	}

	public void setBacklogType1(String backlogType1) {
		this.backlogType1 = backlogType1;
	}
	
	@Size(min=0, max=10, message="待办类型2长度不能超过 10 个字符")
	public String getBacklogType2() {
		return backlogType2;
	}

	public void setBacklogType2(String backlogType2) {
		this.backlogType2 = backlogType2;
	}
	
	@Size(min=0, max=200, message="待办标题长度不能超过 200 个字符")
	public String getBacklogTitle() {
		return backlogTitle;
	}

	public void setBacklogTitle(String backlogTitle) {
		this.backlogTitle = backlogTitle;
	}
	
	public String getBacklogContent() {
		return backlogContent;
	}

	public void setBacklogContent(String backlogContent) {
		this.backlogContent = backlogContent;
	}
	
	@Size(min=0, max=200, message="跳转的地址链接长度不能超过 200 个字符")
	public String getBacklogHref() {
		return backlogHref;
	}

	public void setBacklogHref(String backlogHref) {
		this.backlogHref = backlogHref;
	}
	
	@Size(min=0, max=100, message="机构编码长度不能超过 100 个字符")
	public String getOrgCode() {
		return orgCode;
	}

	public void setOrgCode(String orgCode) {
		this.orgCode = orgCode;
	}
	
	@Size(min=0, max=64, message="标识字段1长度不能超过 64 个字符")
	public String getBizKey() {
		return bizKey;
	}

	public void setBizKey(String bizKey) {
		this.bizKey = bizKey;
	}
	
	@Size(min=0, max=64, message="标识字段2长度不能超过 64 个字符")
	public String getBizType() {
		return bizType;
	}

	public void setBizType(String bizType) {
		this.bizType = bizType;
	}
	
	@Size(min=0, max=64, message="待办布置人编号长度不能超过 64 个字符")
	public String getSendUserCode() {
		return sendUserCode;
	}

	public void setSendUserCode(String sendUserCode) {
		this.sendUserCode = sendUserCode;
	}
	
	@Size(min=0, max=64, message="待办布置人名称长度不能超过 64 个字符")
	public String getSendUserName() {
		return sendUserName;
	}

	public void setSendUserName(String sendUserName) {
		this.sendUserName = sendUserName;
	}
	
	public String getReceiveUserCode() {
		return receiveUserCode;
	}

	public void setReceiveUserCode(String receiveUserCode) {
		this.receiveUserCode = receiveUserCode;
	}
	
	@Size(min=0, max=10, message="数据类型长度不能超过 10 个字符")
	public String getDataType() {
		return dataType;
	}

	public void setDataType(String dataType) {
		this.dataType = dataType;
	}
	
	@Size(min=0, max=10, message="数据状态长度不能超过 10 个字符")
	public String getDataStatus() {
		return dataStatus;
	}

	public void setDataStatus(String dataStatus) {
		this.dataStatus = dataStatus;
	}
	
	@Size(min=0, max=10, message="待办类型3长度不能超过 10 个字符")
	public String getBacklogType3() {
		return backlogType3;
	}

	public void setBacklogType3(String backlogType3) {
		this.backlogType3 = backlogType3;
	}

	public List<OfficeUser> getOfficeUser() {
		return officeUser;
	}

	public void setOfficeUser(List<OfficeUser> officeUser) {
		this.officeUser = officeUser;
	}

	public List<SysBasicUser> getBasicUser() {
		return basicUser;
	}

	public void setBasicUser(List<SysBasicUser> basicUser) {
		this.basicUser = basicUser;
	}

	public String getTaskId() {
		return taskId;
	}

	public void setTaskId(String taskId) {
		this.taskId = taskId;
	}

	public String getActionId() {
		return actionId;
	}

	public void setActionId(String actionId) {
		this.actionId = actionId;
	}

	public String getCreateDateStr() {
		return createDateStr;
	}

	public void setCreateDateStr(String createDateStr) {
		this.createDateStr = createDateStr;
	}

	public String getDealCode() {
		return dealCode;
	}

	public void setDealCode(String dealCode) {
		this.dealCode = dealCode;
	}

	public String getDealName() {
		return dealName;
	}

	public void setDealName(String dealName) {
		this.dealName = dealName;
	}

	public Date getDealTime() {
		return dealTime;
	}

	public void setDealTime(Date dealTime) {
		this.dealTime = dealTime;
	}

	public String getLeaderOrgName() {
		return leaderOrgName;
	}

	public void setLeaderOrgName(String leaderOrgName) {
		this.leaderOrgName = leaderOrgName;
	}

	public String getTaskStatus() {
		return taskStatus;
	}

	public void setTaskStatus(String taskStatus) {
		this.taskStatus = taskStatus;
	}
}